<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // console.log(1 + '');//这样可以直接转为字符串
        // console.log(1);
        // console.log((1).toString());//前面这个数字必须＋括号

        console.log(2 ** 53);
        console.log('233'.charAt(0));
        console.log('233'[0]);

        const list = [
            {
                // 评论id
                rpid: uuidV4(),
                // 用户信息
                user: {
                    uid: '13258165',
                    avatar: '',
                    uname: '周杰伦',
                },
                // 评论内容
                content: '哎哟，不错哦',
                // 评论时间
                ctime: dayjs(new Date()).format('MM-DD hh:mm'),//格式化 月-日 时：分
                like: 126,
            },
            {
                rpid: 2,
                user: {
                    uid: '36080105',
                    avatar: '',
                    uname: '许嵩',
                },
                content: '我寻你千百度 日出到迟暮',
                ctime: '11-13 11:29',
                like: 88,
            },
            {
                rpid: 1,
                user: {
                    uid: '30009257',
                    avatar,
                    uname: '黑马前端',
                },
                content: '学前端就来黑马',
                ctime: '10-19 09:00',
                like: 66,
            },
        ]
        console.log(list.json());
    </script>
</body>

</html>